package com.jiashihui.schema_lgorithm.schema.decorator;

/**
 * @author jiashihui
 * @describe: 女孩装饰类（装饰类，可以为被装饰类添加功能）
 * @date 2019/03/14
 */
public class GirlDecoratorImpl implements Description {

    /* 中国女孩类（被装饰类） */
    private ChineseGirlImpl chineseGirl;

    public GirlDecoratorImpl() {
    }

    public GirlDecoratorImpl(ChineseGirlImpl chineseGirl) {
        this.chineseGirl = chineseGirl;
    }

    @Override
    public void description() {
        System.out.println("before decorator");
        chineseGirl.description();
        System.out.println("after decorator");
        System.out.println("chineseGirl goodness and beautiful");
    }
}
